package com.etc.entity;

import java.security.Timestamp;
import java.util.Date;
import java.util.List;

/**
 * my的评论类
 * @author Administrator
 *
 */

public class Discuss {
	
	private Integer id;
	
	private Integer uid;
	
	private Integer duid;
	
	private String  dcontent;
	
	private Date dtime;
	//一条评论对应一个用户
	private User user;

	//用于显示正确时间的列
	private String formatDtime;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public Integer getDuid() {
		return duid;
	}

	public void setDuid(Integer duid) {
		this.duid = duid;
	}

	public String getDcontent() {
		return dcontent;
	}

	public void setDcontent(String dcontent) {
		this.dcontent = dcontent;
	}

	public Date getDtime() {
		return dtime;
	}

	public void setDtime(Date dtime) {
		this.dtime = dtime;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getFormatDtime() {
		return formatDtime;
	}

	public void setFormatDtime(String formatDtime) {
		this.formatDtime = formatDtime;
	}

	@Override
	public String toString() {
		return "Discuss [id=" + id + ", uid=" + uid + ", duid=" + duid + ", dcontent=" + dcontent + ", dtime=" + dtime
				+ ", user=" + user + ", formatDtime=" + formatDtime + "]";
	}

}
